package com.ck.core.constant;

/**
 * 业务常量类
 *
 * @author dxy
 * @date 2018/6/21 14:41
 */
public class BusinessConstant {
    /**
     * 操作日志状态-成功
     */
    public static final int OPERATION_LONG_OPERATION_STATUS_SUCCESS = 1;
    /**
     * 操作日志状态-失败
     */
    public static final int OPERATION_LONG_OPERATION_STATUS_FAIL = 0;
    /**
     * 状态-启用
     */
    public static final int STATUS_ENABLE = 1;
    /**
     * 状态-禁用
     */
    public static final int STATUS_DISABLE = 0;
    /**
     * 终端状态-在线
     */
    public static final int DEVICE_INFO_STATUS_ON_LINE = 0;

    /**
     * 终端唯一编码参数名
     */
    public static final String CHAR_DEVICE_CODE = "deviceCode";
    /**
     * 节目下载状态成功
     */
    public static final int PROGRAM_DOWNLOAD_SUCCESS = 0;
    /**
     * 节目下载失败
     */
    public static final int PROGRAM_DOWNLOAD_FAIL = 2;

    /**
     * 设备已绑定
     */
    public final static int DEVICE_BIND = 1;
    /**
     * 设备已解绑
     */
    public final static int DEVICE_UNBIND = 0;
    /**
     * 终端升级类型-软件
     */
    public static final int DEVICE_UPGRADE_TYPE_SOFTWARE = 0;
    /**
     * 终端升级类型-固件
     */
    public static final int DEVICE_UPGRADE_TYPE_FIRMWARE = 1;
    /**
     * apk状态-正常
     */
    public static final int APK_USE = 0;
    /**
     * apk状态-删除
     */
    public static final int APK_DELETE = 0;
    /**
     * 终端升级1:强制升级
     */
    public static final int DEVICE_UPGRADE_FORCE_YEE = 1;
    /**
     * 终端升级0:不强制
     */
    public static final int DEVICE_UPGRADE_FORCE_NO = 0;
    /**
     * apk定时升级 1定时升级
     */
    public static final int DEVICE_UPGRADE_TIMING_YEE = 1;
    /**
     * apk定时升级 0不定时升级
     */
    public static final int DEVICE_UPGRADE_TIMING_NO = 0;
    /**
     * apk升级状态 1升级成功
     */
    public static final int DEVICE_UPGRADE_SUCCESS = 1;
    /**
     * apk升级状态 0升级中
     */
    public static final int DEVICE_UPGRADE_DOING = 0;
    /**
     * 自营节目类型
     */
    public static final String SELF_PROGRAM_TYPE = "self";
    /**
     * api节目类型
     */
    public static final String API_PROGRAM_TYPE = "api";
    /**
     * 素材网页类型编码
     */
    public static final String FILE_TYPE_WEB = "web";
    /**
     * 素材图片类型编码
     */
    public static final String FILE_TYPE_IMAGE = "image";
    /**
     * 素材视频类型编码
     */
    public static final String FILE_TYPE_VIDEO = "video";
    /**
     * 临时文件的存放目录
     */
    public static final String TEMP_DIR ="tempdir";
    /**
     * 声音均衡首次减少音量
     */
    public static final Float FIRST_MAX_VOLUME = -20F;
    /**
     * ffmpeg视频声音均衡的最大音量值
     */
    public static final Float MAX_VOLUME = -1F;
    /**
     * ffmpeg <数值> 以<数值>质量为基础的VBR，取值0.01-255，约小质量越好
     */
    public static final String QSCALE = "0.01";
    /**
     *ffmpeg 视频转换后的编码方式_COPY
     */
    public static final String VCODEC_COPY = "copy";
    /**
     *ffmpeg 视频转换后的编码方式_XVID
     */
    public static final String VCODEC_SVID = "libxvid";
    /**
     * ffmpeg 视频中的音频转换后的编码格式_pcm
     */
    public static final String ACODEC_PCM = "pcm_s16le";
    /**
     * ffmpeg 视频要求的最终处理完成的格式
     */
    public static final String VIDEO_EXTENSION = "avi";
    /**
     * 允许通过的视频编码(多个格式之间使用"|"分隔)
     */
    public static final String VIDEO_PASS = "avc|xvid";
    /**
     * 视频编码是否符合标准—是
     */
    public static final String VIDEO_PASS_SUCCESS = "success";
    /**
     * 视频编码是否符合标准-否
     */
    public static final String VIDEO_PASS_FAIL = "fail";
    /**
     * 运行上传的视频分辨率
     */
    public static final Integer MAX_RESOLUTION = 1920;
    /**
     * 素材分组长度限制
     */
    public static final Integer FILE_GROUP_MAX_LENGTH = 6;
    /**
     * 上传apk格式
     */
    public static final String APK_TYPE = "apk";

    /**
     * 模块类型-菜单
     */
    public static final Integer TYPE_MENU = 1;
    /**
     * 模块类型-按钮
     */
    public static final Integer TYPE_BUTTON = 2;
    /**
     * 安装员角色id
     */
    public static final Long INSTALLER_ROLE_ID = 1L;


}
